import Vue from 'vue'
import Router from 'vue-router'

// routes 
import System from './system'
import Report from './report'

// main
import Container from '@/pages/Container'

Vue.use(Router)

const modular = [
    System,
    Report
]

const routes = [
    {path: '/', name: "", component: Container, children:  modular},
    {path: '/login', name: "login", component: () => import('@/pages/Login.vue')},
    {path: '*', redirect: '/'},
]


export default new Router({
    routes
})